package cn.edu.lingnan.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Author: chen_man_cheng
 * @Description: //TODO
 * @Date: Create in 20:50 2020/6/7
 */
@Configuration
public class Config {
    @Bean
    @LoadBalanced //实现负载均衡（轮询）
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}